<?php // no direct access
defined('_JEXEC') or die('Restricted access');

$canEdit	= ($this->user->authorize('com_content', 'edit', 'content', 'all') || $this->user->authorize('com_content', 'edit', 'content', 'own'));
$db = &JFactory::getDBO();
$db1 = &JFactory::getDBO();
$query5 = "SELECT * FROM jos_content WHERE id=30";

$query3 = 'SELECT a.*, u.name AS author, u.usertype, cc.title AS category, s.title AS section,' .
					' CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(":", a.id, a.alias) ELSE a.id END as slug,'.
					' CASE WHEN CHAR_LENGTH(cc.alias) THEN CONCAT_WS(":", cc.id, cc.alias) ELSE cc.id END as catslug,'.
					' g.name AS groups, s.published AS sec_pub, cc.published AS cat_pub, s.access AS sec_access, cc.access AS cat_access '.
					' FROM #__content AS a' .
					' LEFT JOIN jos_categories AS cc ON cc.id = a.catid' .
					' LEFT JOIN jos_sections AS s ON s.id = cc.section AND s.scope = "content"'.
					' LEFT JOIN jos_users AS u ON u.id = a.created_by'.
					' LEFT JOIN jos_groups AS g ON a.access = g.id'.' WHERE catid=3 AND state=1 ORDER BY ordering';
$db->setQuery($query3);
$tmp = $db->loadObjectList();
$db1->setQuery($query5);
$tmp1 = $db1->loadObject();

//die($ivar);


?>
<div id="main">
                        	<!--left sidebar-->
                            <div class="aside">
                            	<!--Category-->
                            	<div id="serviceCat" class="category">
                                    <h2>Services</h2>
									 <ul class="cat-list">
                                  <?php for($l=0;$l<count($tmp);$l++){?>
                                    
                                        <li <?php if($this->ivar==$tmp[$l]->id) { echo 'class="current"'; }?>><a href="index.php?option=com_content&view=article&id=<?php echo $tmp[$l]->id; ?>&Itemid=21"><?php echo $tmp[$l]->title; ?></a></li>                                      
								
										<?php }?>
										 </ul> 
                                </div>
                                <!-- /Category-->
                                <div class="contact-info">
                                      {module Firma infomation}
                                </div>
                            </div>
                            <!-- Begin main-content  -->
                            <div id="content" class="with-sidebar">
                                <h1 class="page-title"><a class="parent" href="#">Kvittering</a></h1>
                                <!-- Begin service content  -->
                                <div class="content-ctn">
                                    <div class="article-ctn">
                                    	
                                      <?php  echo $tmp1->introtext;?>
									   
                                    </div>
                                 
                                	<div class="back-ctn"><a class="back" href="javascript:history.back();">Tilbage</a></div>
                                </div>
                                <!-- / service content  -->
                                
 </div>
                            <!-- / main-content  -->
                              
                            <!-- /end mid-content  -->